package com.jdd.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 人员介质设备关联表
 * </p>
 *
 * @author zly
 * @since 2022-03-24
 */
@ApiModel(value="TMediumDevice对象", description="人员介质设备关联表")
public class TMediumDevice implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "状态1-正常2-停用")
    private Boolean status;

    @ApiModelProperty(value = "人员id")
    private Long userId;

    @ApiModelProperty(value = "设备id")
    private Long deviceId;

    @ApiModelProperty(value = "介质id")
    private Long mediumId;

    @ApiModelProperty(value = "1-临时介质2-有效介质3-永久介质")
    private Boolean mediumAttribute;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }
    public Long getMediumId() {
        return mediumId;
    }

    public void setMediumId(Long mediumId) {
        this.mediumId = mediumId;
    }
    public Boolean getMediumAttribute() {
        return mediumAttribute;
    }

    public void setMediumAttribute(Boolean mediumAttribute) {
        this.mediumAttribute = mediumAttribute;
    }

    @Override
    public String toString() {
        return "TMediumDevice{" +
            "id=" + id +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", status=" + status +
            ", userId=" + userId +
            ", deviceId=" + deviceId +
            ", mediumId=" + mediumId +
            ", mediumAttribute=" + mediumAttribute +
        "}";
    }
}
